package com.customer.crm.customer.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.time.LocalDateTime;

/**
 * @author Lyp
 * @create 2021/12/24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("contact")
@TableName("tb_crm_contacts")
public class Contacts {

    private Integer id;

    @TableField(value = "creator_user_id")
    private String creatorUserId;

    @TableField(value = "conname")
    private String conname;

    @TableField(value = "post")
    private String post;

    @TableField(value = "department")
    private String department;

    @TableField(value = "sex")
    private Integer sex;

    @TableField(value = "saltname")
    private String saltname;

    @TableField(value = "telephone")
    private String telephone;

    @TableField(value = "email")
    private String email;

    @TableField(value = "qq_no")
    private Integer qqNo;

    @TableField(value = "address")
    private String address;

    @TableField(value = "zip_code")
    private String zipCode;

    @TableField(value = "description")
    private String description;

    @TableField(value = "customer_id")
    private Integer customerId;

    @TableField(exist = false)
    private String customerName;

    @TableField(value = "create_time")
    private String createTime;

    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(value = "delete_status")
    @TableLogic(value = "1" , delval = "0")
    private Integer deleteStatus;

    @TableField(value = "delete_user_id")
    private String deleteUserId;

    @TableField(value = "delete_time")
    private LocalDateTime deleteTime;


}
